package domain.scenes;

import java.awt.Color;
import java.awt.Font;

import sounds.Sounds;

import com.uqbar.vainilla.GameComponent;
import com.uqbar.vainilla.GameScene;
import com.uqbar.vainilla.appearances.Sprite;
import components.decoration.ComponentLabel;

import domain.components.GameOver;

public class EndScene extends GameScene {

	public EndScene(String winner){
		
		GameComponent gc = new GameComponent();
		(Sounds.sounds.get("winGame")).play();
		Sprite sp = Sprite.fromImage("/images/presentation/title-background.PNG");
		sp = sp.scaleTo(800, 800);
		gc.setAppearance(sp);
		this.addComponent(gc);
		
		GameOver gameOver = new GameOver();
		this.addComponent(gameOver);
		
		this.addComponent(new ComponentLabel(300, 100, winner, Font.DIALOG, Font.BOLD, 80, Color.GREEN));
		this.addComponent(new ComponentLabel(340, 200, "WINS", Font.DIALOG, Font.BOLD, 60, Color.GREEN));
		
	}
}
